<header class="gui-header gui-bg-white gui-box-fix-top">
    <div class="type-btn">
        <i class="fa fa-bars"></i>
    </div>
    <nav class="gui-main-width gui-box-center">
        <div class="gui-header-logo">
            <a th:href="@{/}" href="#">
                <img th:src="@{${site_config.logo}}"
                     src="http://www.jikedaquan.com/zb_users/upload/2020/02/202002261582688271912288.png" alt="gsystem">
            </a>
        </div>
        <ul class="gui-header-nav">
            <li>
                <a th:href="@{/}" href="#">首页</a>
            </li>
            <li th:each="contentType:${contentTypeList}">
                <a th:href="@{'/list/'+${contentType.typeId}+'_1.html'}" href="#"
                   th:text="${contentType.typeName}">Java</a>
                <ul th:if="${contentType.childList!=null}">
                    <li th:each="child:${contentType.childList}">
                        <a th:href="@{'/list/'+${child.typeId}+'_1.html'}" href="#" th:text="${child.typeName}">Java</a>
                    </li>
                </ul>
            </li>
        </ul>
        <div class="search-btn">
            <i class="fa fa-search"></i>
        </div>
        <div class="gui-header-search-box">
            <form class="gui-header-search" method="get" th:action="@{/search}">
                <input class="gui-input-text" name="searchContent" type="text" th:value="${searchContent}">
                <button type="submit" class="gui-btn">
                    <i class="fa fa-search"></i>
                </button>
            </form>
        </div>
    </nav>
</header>